//
//  DiscoverClassifyTopPageBarCell.m
//  XYFMApp
//
//  Created by 岁变 on 16/9/5.
//  Copyright © 2016年 岁变. All rights reserved.
//

#import "DiscoverClassifyTopPageBarCell.h"

@implementation DiscoverClassifyTopPageBarCell

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.textColor = [UIColor colorWithRed:0.33 green:0.35 blue:0.36 alpha:1.00];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_titleLabel];
        
        _redLine = [[UIView alloc] init];
        _redLine.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_redLine];
        _redLine.hidden = YES;
        
    }
    return self;
}


- (void)layoutSubviews {
    [super layoutSubviews];
    _titleLabel.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    
    _redLine.frame = CGRectMake(0, self.contentView.frame.size.height - 3, self.contentView.frame.size.width, 3);
    
}


@end
